#ifndef __CHECK_H__
#define __CHECK_H__

#include <stdint.h>
#include "ast.h"
#include "stmt.h"

#ifdef __cplusplus
extern "C" {
#endif
/*------------------- C ----------------------*/
bool check_node(ast_node_t* node);
/*------------------- C ----------------------*/
#ifdef __cplusplus
}
#endif

#ifdef __cplusplus
/*------------------ C++ ---------------------*/
bool check_decl(decl_t* decl);
bool check_param(param_t* param);
bool check_field(field_t* field);
bool check_method(method_t* method);
bool check_class(class_def_t* clz);
/*------------------ C++ ---------------------*/

#endif


#endif  // __CHECK_H__
